package ru.st.selenium.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class MovieViewPage extends InternalPage{

	@FindBy(css = ".maininfo_full>h2")
	private WebElement titleField;
	  
	@FindBy(xpath = "//div[@id='content']//li[4]//a")
	private WebElement deleteFilmButton;
	
	public MovieViewPage(PageManager pages) {
		super(pages);
	}

	public String getTitleHeader() {
	    return titleField.getText();
	}

	public void clickRemoveMovieButton() {
		deleteFilmButton.click();		
	}
	  
	  
}
